<?php defined('SYSPATH') or die('No direct script access.');

class Helper_Widget
{    
    public static function get_url()
    {
        return '/widget/id' . ORM::factory('shop')->get_current()->id;
    }
    
    public static function pagination($page, $per_page, $count, $url)
    {
        $content = ORM::factory('shop')->get_current()->get_widget_view('_pagination_tpl');
        $content->page     = $page;
        $content->per_page = $per_page;
        $content->count    = $count;
        $content->url      = $url;
        return $content;   
    }
} 
